package com.yixq.soa.service.web.auth.model;

/**
 * Token的Model类，可以增加字段提高安全性，例如时间戳、url签名
 * 
 * @ClassName: TokenModel
 * @Description:
 * @author xiaoqun.yi yixq@doordu.com
 * @date 2017年4月6日 上午10:31:43
 * @version V1.0
 */
public class TokenModel {
	// 应用id
	private String appId;

	// 随机生成的uuid
	private String token;

	private Integer userId;

	private Integer agentId;

	public TokenModel() {

	}

	public TokenModel(String appId, String token) {
		this.appId = appId;
		this.token = token;
	}
	
	
	public TokenModel(String appId, String token, Integer userId, Integer agentId) {
		this.appId = appId;
		this.token = token;
		this.userId = userId;
		this.agentId = agentId;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getAgentId() {
		return agentId;
	}

	public void setAgentId(Integer agentId) {
		this.agentId = agentId;
	}

}
